package com.wavehi.common;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @Description
 * @Author WaveHi
 * @Date 2/12/2021 下午 1:06
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 */
@Getter
@Setter
@ToString
public class MyPage {

    private Integer offset;
    private Integer size;
    private Integer pageNo;
    private Integer pageSize;
    private Integer count;

    public Integer getOffset() {
        return (pageNo - 1) * pageSize;
    }

}
